package cn.yunhe.dao.impl;

import cn.yunhe.dao.IAdminDao;
import cn.yunhe.entity.Admin;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import java.util.List;

public class AdminDao extends HibernateDaoSupport implements IAdminDao {

    @Override
    public List<Admin> getAll() {
        return getHibernateTemplate().find("from Admin");
    }
}
